-
Notifications
You must be signed in to change notification settings - Fork 45
Ensure exploration_results
is a list
#607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, thank you!
Regarding your questions:
- In optimagic we want to stick with
float64
for now. If we ever want to be more lenient, then we do it for the whole codebase at once. - Such a check is not necessary imo.
Hey @r3kste! I discussed the problem / inconsistency with Janos. We realized that instead of adhering to the output of Can you rename the PR and make the required changes for this? |
Thanks for the quick feedback.
The "sorted_sample" key in the output dictionary of If we are going ahead with "sorted_values" being a |
The exploration result has fixed fields, so it should not be a dict at all but a dataclass (say InternalExplorationResult) so we get type checking for attribute access. The reason why I would have preferred a list is that this is in principle a history and for histories we usually use lists of floats or lists of arrays as this is the most intuitive way to store histories. However, I don't have a strong opinion here. So you can choose if InternalExplorationResult has list or array attributes but we definitely don't want to use a dict here. |
exploration_results
is a numpy arrayexploration_results
is a list
…on values is a list.
54e1064
to
b87db0d
Compare
This PR ensures that
exploration_results
inMultistartInfo
is a list.Summary
_InternalExplorationResult
, which is returned byrun_explorations
function.list[float]
.Possible Changes
I would like to get feedback on whether the following changes should be included.
exploration_results
. For example, a subdtype ofnp.floating
exploration_results
is positive forminimize
and negative formaximize
.